import request from "@/utils/request"

export type LoginResponse= {
    token:string
    userid:string
}  
   

/**
 * 用户登录 
 */
export const  login = (user:LoginUser) =>request <any,LoginResponse>({
    url:"/api/user/login",  
    method:"POST",
    data:user,  
})    